package com.dommettj.rawfix.gui;

import javax.swing.*;
import java.awt.*;

public class GuiHelper {

    public static void centreWindow(final JFrame window) {

        final Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
        final int x = (screen.width - window.getWidth()) / 2;
        final int y = (screen.height - window.getHeight()) / 2;
        window.setLocation(x, y);
    }
}
